<template>
    <div class="code-mark">
        <template v-if="action == 'edit' || action == 'search' ">
            <el-input v-on="$listeners" :value="value" :placeholder="fieldName"></el-input>
        </template>
        <template v-if="action == 'table'">
            <div>{{value}}任务</div>
        </template>
    </div>
</template>
<script>
    import base from '../base.js';

    export default {
        extends: base,
        props: {},
        data() {
            return {
                searchModel: 'like',
            }
        },
    }
</script>
<style lang="less">
    .code-mark{
        .bgbutton{
            padding: 4px;
            background-color: #389E0D;
            font-size: 10px;
            border: none;
            color: #fff;
            margin-left: 0px;
            margin-right: 2px;
        }
        .color389E0D{
            background-color: #389E0D;
        }
        .colorFA8C16{
            background-color: #FA8C16;
        }
        .color096DD9{
            background-color: #096DD9;
        }
        .colorFF7875{
            background-color: #FF7875;
        }
    }
</style>
